#include <iostream>
#include "arrayStudy/array.h"
using namespace arrayStudy;
int main() {
    array<int> arr1;
    arr1.insertData(1);
    arr1.insertData(2);
    arr1.insertData(3);
    arr1.insertData(4);
    arr1.insertData(5);
    arr1.insertData(5);
    arr1.insertData(5);
    arr1.insertData(5);
    arr1.insertData(5);
    arr1.insertData(5);
    arr1.insertData(5);
    arr1.insertData(5);
    arr1.insertData(5);
    arr1.insertData(5);
    arr1.headInsertData(6);
    arr1.headInsertData(6);
    arr1.headInsertData(8);
    arr1.headInsertData(6);
    arr1.headInsertData(6);
    arr1.headInsertData(6);
    arr1.headInsertData(6);
    arr1.insertDataByPosition(99,10);
    arr1.insertDataByPosition(990,22);
    arr1.insertDataByPosition(990,0);
    arr1.show();
    arr1.deleteData(990);
    arr1.show();
    arr1.deleteData(990);
    arr1.show();
    arr1.deleteData(99);
    arr1.show();
    arr1.deleteDataByPosition(5);
    arr1.show();
    arr1.reverseArray();
    arr1.show();
    array<int>::iterator it=arr1.begin();
    while (it!=arr1.end()) {
        std::cout<<*it<<"   ";
        ++it;
    }
    std::cout<<std::endl;

    return 0;
}